<?php get_header(); ?>

      <h1 class="whereAmI"><?php
					printf( __( 'Category Archives: %s', 'Cindy' ), '<span>' . single_cat_title( '', false ) . '</span>' );
				?></h1>
   <div id="content" role="main">
   

     <?php while ( have_posts() ) : the_post() ?>
				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
				
					<h2 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="read more about <?php the_title_attribute(); ?>"><?php the_title(); ?></a><sup><?php comments_popup_link('0', '1', '%'); ?></sup></h2>
			
			
					<div class="post-meta">
					
					<span class="postdate"><?php the_time('M d, Y') ?></span>
					<?php if ( count( get_the_category() ) ) : ?>
					<span class="cat-links">
						<?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'Cindy' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
					</span>
					<span class="meta-sep">|</span>
				<?php endif; ?>
				<?php
					$tags_list = get_the_tag_list( '', ', ' );
					if ( $tags_list ):
				?>
					<span class="tag-links">
						<?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'Cindy' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
					</span>
					<span class="meta-sep">|</span>
				<?php endif; ?>
					
					</div><!-- end of post-meta-->

			
			        <div class="thumbnail-box">
					
					<?php include('includes/thumbnail.php'); ?>
					</div><!-- end of thumbnail-box-->
					
					<div class="entry-content">
							<?php if (has_excerpt())
						         { 
								   the_excerpt();
						         }
						         else{
							        echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 480,"...");
						         } 
						?>
						<div class="more"><a href="<?php the_permalink() ?>" title="read more about <?php the_title(); ?>" rel="bookmark" class="title">read more</a></div>

					</div><!-- .entry-content -->
					
				
					
					
					
					
					
				</div><!-- #post-## -->
            <div class="post-end"></div>
			
			<?php endwhile; // end of the loop. ?>
	
			</div><!-- #content -->
			<?php pagination($query_string); ?>


<?php //get_sidebar(); ?>
<?php get_footer(); ?>
